package com.dataseek.iot.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dataseek.iot.toolkit.mybatis.entity.BaseEntity;
import lombok.Data;

import java.beans.Transient;
import java.util.List;

/**
 * @discription:
 * @author: Freya.Yan
 * @date: 2022/1/11
 */
@Data
@TableName(value = "tenant.sys_menu")
public class Menu extends BaseEntity {

    @TableField(value = "tenant_code")
    private String tenantCode;

    //用户id标识
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Long menuId;

    @TableField(value = "menu_name")
    private String menuName;
    @TableField(value = "parent_id")
    private Long parentId;
    @TableField(value = "order_num")
    private Integer orderNum;
    @TableField(value = "path")
    private String path;
    @TableField(value = "perms")
    private String perms;
    @TableField(value = "menu_type")
    private String menuType;
    @TableField(value = "is_uniq")
    private String isUniq;
    private String status;
    private String icon;
    @TableField(exist=false)
    private List<Menu> children;

}
